const Koa = require('koa');
const Cors = require('koa-cors');
const BodyParser = require('koa-bodyparser');
const app = new Koa();
const router=require('./route');

app.use(BodyParser());
app.use(Cors())
router(app)
app.listen(8888, () => {
    console.log('服务器启动了 8888');
})